package cn.edu.scau.nursingcenter.entiry;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
/**
 *  退住信息管理实体类Stay_back
 * @author feng
 *
 */
@ApiModel(value = "退住记录实体类")
@Entity(name = "stay_back")
@Table(name = "stay_back")
@Data
@Builder
@AllArgsConstructor
public class Stay_back implements Serializable{
	
	/**
	 *  退住记录编号 主键 自增
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@ApiModelProperty(value = "退住记录编号")
	private Integer stay_back_id;
	/**
	 * 客户编号
	 */
	@ApiModelProperty(value = "客户编号")
	private Integer c_id;
	/**
	 * 客户姓名
	 */
	@ApiModelProperty(value = "客户姓名")
	private String c_name;
	/**
	 * 客户身份证号
	 */
	@ApiModelProperty(value = "客户身份证号")
	private String p_id;
	/**
	 * 客户性别
	 */
	@ApiModelProperty(value = "客户性别")
	private String c_gender;
	/**
	 * 客户年龄
	 */
	@ApiModelProperty(value = "客户年龄")
	private Integer c_age;
	/**
	 * 联系人电话
	 */
	@ApiModelProperty(value = "联系人电话")
	private String c_telephone;
	/**
	 * 联系人
	 */
	@ApiModelProperty(value = "联系人")
	private String contacts;
	/**
	 * 退住日期
	 */
	@ApiModelProperty(value = "退住日期")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private Date stay_back_date;
	/**
	 * 退住类型
	 */
	@ApiModelProperty(value = "退住类型")
	private String stay_back_type;
	/**
	 * 退住原因
	 */
	@ApiModelProperty(value = "退住原因")
	private String stay_back_reason;
	/**
	 * 无参构造方法
	 */
	public Stay_back() {}
	private static final long serialVersionUID = -8484942309156885699L;

}
